package com.zhang.authoritycenter.common.model.dto.auth;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 需要采用类型限制T
 *
 * @author zhangFanJun
 * @date 2023-12-06 18:05
 **/
@Data
public class KingHoodPrincipal<T> implements Serializable {

    private String issuer;
    private String audience;
    private String subject;

    private String token;
    /**
     * 失效时间为秒
     * */
    private long expire;
    private Integer tokenValidityInSeconds;
    private Date expiration;

    /**
     * 后期放弃info，
     * 因为涉及到用户信息更新的问题
     * */
    private T info;


}
